package com.wzx.user.test.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wzx.common.exception.LeadNewsException;
import com.wzx.user.mapper.WalletMapper;
import com.wzx.user.pojo.Wallet;
import com.wzx.user.service.CommonService;
import com.wzx.user.test.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wzx
 * @version 1.0
 * @date 2023/8/3 - 16:44
 * @description 标题
 */
@Service
public class ImplService implements TestService {
    @Autowired
    private WalletMapper walletMapper;

    @Autowired
    private CommonService commonService;

    @Override
    public void test() throws LeadNewsException {
        //查询每一个用户信息
        /*QueryWrapper<Wallet> walletQueryWrapper = new QueryWrapper<>();
        walletQueryWrapper.isNotNull("password");
        List<Wallet> wallets = walletMapper.selectList(walletQueryWrapper);

        for (Wallet wallet : wallets) {
            String encryption = commonService.encryption(wallet.getUid(), wallet.getPassword());
            wallet.setPassword(encryption);
            walletMapper.updateById(wallet);
        }*/
    }
}
